package bridge.pattern.demo;

/**
 * Created by 逸足天涯
 * Date: 2019/10/21.
 * Time: 12:26
 */
public class Rectriangle extends Shape {
    protected Rectriangle(IColor color) {
        super(color);
    }

    @Override
    void drawShape(int border) {
        System.out.println("This Rectriangle ic colored with :");
        System.out.println(border);
    }

    @Override
    void modifyBorder(int border, int increment) {
        System.out.println("\nNow we are changing the border length "+ increment  +
                " times");
        border = border * increment;
        drawShape(border);
    }
}
